<!--<div class="navbar navbar-default" style="text-align:right;line-height:50px;">
共 <b style="color:red;">{$totalorderno}</b> 单，已支付 <b style="color:red;">{$totalorder}</b>  单,总金额：<b style="color:red;">￥ {$totalprice}</b>&nbsp;&nbsp;&nbsp;&nbsp;
                    </div>-->


                    <form method="post" enctype="multipart/form-data" target="_blank" id="form-order">
                        <div class="table-responsive">
                            <table class="table table-bordered table-hover" style="font-size:12px;">
                                <thead>
                                <tr>
                                    <td style="width: 1px;" class="text-center"><input type="checkbox" onclick="$('input[name*=\'selected\']').prop('checked', this.checked);"></td>
                                    <td class="text-center">
                                        <a href="javascript:sort('order_sn');">订单编号</a>
                                    </td>
                                    <td class="text-center">
                                        <a href="javascript:sort('consignee');">用户名</a>
                                    </td>
                                   <!-- <td class="text-center">
                                        <a href="">总金额</a>
                                    </td>-->
                                    <td class="text-center">
                                        <a href="">支付金额</a>
                                    </td>
                                    <td class="text-center">
                                        <a href="javascript:sort('order_status');">订单状态</a>
                                    </td>
                                    <td class="text-center">支付状态</td>
                                    <!--<td class="text-center">发货状态</td>-->
                                    <td class="text-center">支付方式</td>
                                    <td class="text-center">业务员</td>
                                    <!--<td class="text-center">配送方式</td>-->
                                    <td class="text-center">
                                        <a href="javascript:sort('add_time');">下单时间</a>
                                    </td>
                                    <td class="text-center">操作</td>
                                </tr>
                                </thead>
                                <tbody>
                                <volist name="orderList" id="list">
                                    <tr  <if condition="$pay_status[$list[pay_status]] neq '已支付'">style="color:#A5A5A5;"</if>>
                                        <td class="text-center">
                                        	<input type="checkbox" name="selected[]" value="6">
                                        	<input type="hidden" name="shipping_code[]" value="flat.flat">
                                        </td>
                                        <td class="text-center">{$list.order_sn}</td>
                                        <td class="text-center">{$list.user_id|get_user_name}:{$list.user_id|get_user_mobile} </td>
                                        <!--<td class="text-center">{$list.total_amount}</td>-->
                                        <td class="text-center">{$list.pay_price}</td>
                                    <td class="text-center"> {$list.order_id|get_order_status}<if condition="$list.is_delete eq 1"><br/><span style="color:red;">(用户已删除)</span></if></td>
                                        <td class="text-center" <if condition="$pay_status[$list[pay_status]] eq '已支付'">style='color:#008100;'</if> >{$pay_status[$list[pay_status]]}</td>


                                    <!--<php>if($list[shipping_code]=='smzt'){</php>-->
                                    <!--<td class="text-center">&#45;&#45;</td>-->
                                    <!--<php>}else{</php>-->
                                    <!--<td class="text-center" <if condition="$pay_status[$list[pay_status]] eq '已支付'"><if condition="$shipping_status[$list[shipping_status]] eq '未发货'">style='color:#DF0000;'</if></if>>{$shipping_status[$list[shipping_status]]}</td>-->

                                    <!--<php>}</php>-->
                                        <td class="text-center">{$list.pay_name|default='其他方式'}</td>
                                        <td class="text-center">{$list.sales_id|get_sales_name}</td>
                                        <td class="text-center">{$list.add_time|date='Y-m-d H:i',###}</td>
                                        <td class="text-center">

                                            <!--<if condition="($list['pay_status'] eq 0) and ($list['transfer_vouchers'] neq '')">
                                                <a href="javascript:;"  id="transfer_vouchers" class="btn btn-info" data-original-title="查看转账凭证">转账凭证</a>
                                            </if>
                                            <script>
                                                function vouchers_show(){
                                                    var transfer_vouchers ="{$list.transfer_vouchers}";
                                                    $('#transfer_vouchers').html(transfer_vouchers);
                                                }
                                            </script>-->




                                           <a href="{:U('Admin/order/detail',array('order_id'=>$list['order_id']))}" data-toggle="tooltip" title="" class="btn btn-info" data-original-title="查看详情"><i class="fa fa-eye"></i></a>
                                           <if condition="($list['order_status'] eq 3) or ($list['order_status'] eq 5)">
                                                <a href="{:U('Admin/order/delete_order',array('order_id'=>$list['order_id']))}"  data-toggle="tooltip" class="btn btn-danger" title="删除"><i class="fa fa-trash-o"></i></a>
                                        	<else/>
                                               <a href="{:U('Admin/order/delete_order',array('order_id'=>$list['order_id']))}"  data-toggle="tooltip" class="btn btn-danger" title="删除"><i class="fa fa-trash-o"></i></a>
                                        		<!--<a href="javascript:void(0)" onclick="alert('该订单不得删除')" data-toggle="tooltip" class="btn btn-default" title="删除"><i class="fa fa-trash-o"></i></a>-->
                                        	</if>
                                        </td>
                                    </tr>
                                </volist>
                                </tbody>
                            </table>
                        </div>
                    </form>
                    <div class="row">
                        <div class="col-sm-6 text-left"></div>
                        <div class="col-sm-6 text-right">{$page}</div>
                    </div>
<script>
    $(".pagination  a").click(function(){
        var page = $(this).data('p');
        ajax_get_table('search-form2',page);
    });
</script>